package com.zwb.wallet.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zwb.wallet.dto.ResultDto;
import com.zwb.wallet.entity.WalletDetails;
import com.zwb.wallet.vo.ConsumptionVo;

/**
 * @author 头发又黑又长
 * @Date 2023/2/28 20:54
 * @email zwb15083976291@163.com
 */
public interface WalletDetailsService extends IService<WalletDetails> {

    /**
     * 消费
     *
     * @param userId        用户id
     * @param consumptionVo 消费详情
     * @return
     */
    ResultDto consumption(Integer userId, ConsumptionVo consumptionVo);

    /**
     * 退款
     * @param userId
     * @param consumptionVo
     * @return
     */
    ResultDto refund(Integer userId, ConsumptionVo consumptionVo);
}
